home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / progtool / c / gcc / incl98.zoo / sys / statfs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-05  |  936 b   |  43 lines

  1. /* 
  2.  * statfs.h -- structure for statfs() call.
  3.  */
  4.  
  5. #ifndef _SYS_STATFS_H
  6. #define _SYS_STATFS_H
  7.  
  8. #ifndef _COMPILER_H
  9. #include <compiler.h>
  10. #endif
  11.  
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15.  
  16. typedef struct {
  17.   long val[2];
  18. } fsid_t;
  19.  
  20. struct statfs {
  21.   long f_type;        /* type of info, zero for now */
  22.   long f_bsize;        /* fundamental file system block size */
  23.   long f_blocks;    /* total blocks in file system */
  24.   long f_bfree;        /* free blocks */
  25. /*
  26.  * Remaining fields are here for BSD compatibility, but they aren't really
  27.  * used for a standard TOS-ish filesystem
  28.  */
  29.   long f_bavail;    /* free blocks available to non-super-user */
  30.   long f_files;        /* total file nodes in file system */
  31.   long f_ffree;        /* free file nodes in fs */
  32.   fsid_t f_fsid;    /* file system id */
  33.   long f_spare[7];    /* spare for later */
  34. };
  35.  
  36. __EXTERN int    statfs    __PROTO((const char *path, struct statfs *buf));
  37.  
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41.  
  42. #endif    /* _SYS_STATFS_H */
  43.